package com.winchain.chainbill.tbill.biz.controller;

import com.shell.bee.base.annotation.Logging;
import com.shell.bee.entity.mvc.RetMsg;
import com.shell.bee.persistence.model.PageLimit;
import com.winchain.chainbill.tbill.biz.service.TBillPayInsService;
import com.winchain.chainbill.tbill.biz.vo.TbRecVo;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class TBillPayInsController {
	@Autowired
	private TBillPayInsService tBillPayInsService;

	@RequestMapping
	@ResponseBody
	@Logging(module = "��������", methods = "������������������")
	public List<TbRecVo> queryPayInsList(PageLimit limit, String cusName, String billCode) {
		return this.tBillPayInsService.queryPayInsList(limit, cusName, billCode);
	}

	@RequestMapping
	@ResponseBody
	@Logging(module = "��������", methods = "������������")
	public RetMsg pass(String dctId, String location, String phoneCode) {
		return this.tBillPayInsService.pass(dctId, location, phoneCode);
	}

	@RequestMapping
	@ResponseBody
	@Logging(module = "��������", methods = "������������")
	public RetMsg reject(String dctId, String remark) {
		return this.tBillPayInsService.reject(dctId, remark);
	}
}
